package com.yz.security;

import com.yz.dto.UserToken;

public class UserTokenThreadLocal {
    private static ThreadLocal<UserToken> tokenThreadLocal = new ThreadLocal<>();

    public static void set(UserToken userToken) {
        tokenThreadLocal.set(userToken);
    }

    public static UserToken get() {
        return tokenThreadLocal.get();
    }

    public static void remove() {
        tokenThreadLocal.remove();
    }
}
